package com.example.service.impl;

import com.example.sources.annotation.MyResources;
import com.example.sources.annotation.MyService;
import com.example.dao.UserDao;
import com.example.entity.UserInfo;
import com.example.service.UserService;

/**
 * Created by Administrator on 2016/9/18.
 */
@MyService
public class UserServiceImpl implements UserService{

    @MyResources(name = "UserDao")
    private UserDao userDao;
    @Override
    public void login() {
        UserInfo userInfo = userDao.findByname("123");
        System.out.println(userInfo.getUsername()+" 登录了");
        System.out.println(userInfo.getPassword()+" 登录了");
    }
}
